package ys.ewp.dto;

import java.util.Date;

import ys.ewp.po.UploadFile;

public class UploadFileDto {
	
	private Integer id;
	//上传的文件名称
	private String name;
	//类型
	private String type;
	//大小
	private Integer size;
	//保存的文件名称，加了UUID
	private String realName;
	//上传文件的服务器保存路径
	private String serverPath;
	//上传者的账户名
	private String uploadUserName;
	//创建时间
	private Date dateCreated;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getSize() {
		return size;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getServerPath() {
		return serverPath;
	}
	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}
	public String getUploadUserName() {
		return uploadUserName;
	}
	public void setUploadUserName(String uploadUserName) {
		this.uploadUserName = uploadUserName;
	}
	public Date getDateCreated() {
		return dateCreated;
	}
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}
	
	/**
	 * @功能 根据公告PO对象获得公告DTO对象
	 */
	public static UploadFileDto getDtoByPo(UploadFile uf){
		UploadFileDto ufDto = new UploadFileDto();
		
		
		
		return ufDto;
	}
}
